how to code a guessing game in python